package com.mopon.test.tx.dao.impl;

import com.mopon.test.bean.User;
import com.mopon.test.tx.dao.UserDao;
import com.smart.framework.ioc.annotation.Bean;
import com.smart.framework.orm.DataSet;

@Bean
public class UserDaoImpl implements UserDao {

	@Override
	public User findByName(String username) {
		return DataSet.select(User.class, "username = ?", username);
	}

	@Override
	public void updateUser(User user) {
		DataSet.update(user);
	}

}
